package com.library.service;

import com.library.dto.PageQueryDTO;
import com.library.result.PageResult;

public interface BorrowService {

    /**
     * 借书
     * @param bookId
     */
    void borrow(Long bookId);

    /**
     * 还书
     * @param bookId
     */
    void returnBook(Long bookId);

    /**
     * 借阅记录
     * @param userId
     * @param pageQueryDTO
     * @return
     */
    PageResult borrowHistory(Long userId, PageQueryDTO pageQueryDTO);

}
